<template>
  <div>
    <div>login</div>
    <van-button round block type='primary' @click="login"> 登录</van-button>
  </div>
</template>
<script setup>
import { setAccessToken } from 'utils/auth.js'
import router from 'router'
const login = () => {
  setAccessToken('Bearer token')
  router.push({
    path: '/index'
  })
}
</script>

<style scoped lang='less'></style>
